package com.lixinyue.exer;

public class StudentTest {
    public static void main(String[] args) {
      Student[] stus=new Student[20];
        for (int i = 0; i <stus.length ; i++) {
           //给数组元素赋值
            stus[i]=new Student();
            //给Student对象的属性赋值
            stus[i].number=i+1;
            stus[i].state=(int)(Math.random()*(6-1+1)+1);
            stus[i].score=(int)(Math.random()*(100-0+1)+0);

        }
        Student s=new Student();
        s.thro(stus);
        s.searchState(stus,4);
        s.sort(stus);
        s.thro(stus);




    }
}
